//1.引入
import VueRouter from "vue-router";
import Vue from "vue";
import Find from "@/views/Find.vue";
import My from "@/views/My.vue";
import Friend from "@/views/Friend.vue";

//2.安装注册
Vue.use(VueRouter)

//3.创建一个路由对象
const router = new VueRouter({
    //路由规则数组
    routes: [
        { path: '/find', component: Find },
        { path: '/my', component: My },
        { path: '/friend', component: Friend },
    ],
    //自定义高亮类名
    linkActiveClass: 'active',
    linkExactActiveClass: 'exact-active'

})

//4.导出
export default router